#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

void sumDiff(int a, int b, int* pSum, int* pDiff)
{
	*pSum = a + b; *pDiff = a - b;
}
int main()
{
	int a, b, pSum, pDiff;
	while (scanf("%d%d", &a, &b) == 2)
	{
		sumDiff(a, b, &pSum, &pDiff);
		printf("sum=%d diff=%d\n", pSum, pDiff);
	}
	return 0;
}